<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 
<%
String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />

		<link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
		
        <script language="javascript">
           function shouhouDel(id)
           {
               if(confirm('您确定删除吗？'))
               {
                   window.location.href="<%=path %>/shouhouDel.action?id="+id;
               }
           }
           function shouhouHuifu(id)
           {
                   window.location.href="<%=path %>/admin/shouhou/shouhouHuifu.jsp?id="+id;
           }
       </script>
	</head>

	<body leftmargin="8" topmargin="8" background='<%=path %>/images/allbg.gif'>
			<table width="99%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
							<tr bgcolor="#EEF4EA"><td colspan="20" style="height: 20px;"></td></tr>
							<tr align="center" bgcolor="#FAFAF1" >
								<td width="4%">序号</td>
								<td width="10%">用户</td>
								<td width="10%">商品</td>
								<td width="20%">售后内容</td>
								
								<td width="10%">申请时间</td>
								<td width="10%">回复</td>
								<td width="10%">操作</td>
					        </tr>	
							<c:forEach items="${requestScope.shouhouList}" var="shouhou" varStatus="ss">
							<tr align='center' bgcolor="#FFFFFF"  >
								<td bgcolor="#FFFFFF" align="center">
									${ss.index+1}
								</td>
								<td bgcolor="#FFFFFF" align="center">
									${shouhou.user.userRealname}
								</td>
								<td bgcolor="#FFFFFF" align="center">
									${shouhou.goods.goodsName}
								</td>
								<td bgcolor="#FFFFFF" align="center">
									${shouhou.neirong}
								</td>
								
								
								<td bgcolor="#FFFFFF" align="center">
									${shouhou.shijian}
								</td>
								<td bgcolor="#FFFFFF" align="center">
									${shouhou.huifu}
								</td>
								<td bgcolor="#FFFFFF" align="center">
									<input type="button" value="删除" onclick="shouhouDel(${shouhou.id})"/>
									<input type="button" value="回复" onclick="shouhouHuifu(${shouhou.id})"/>
								</td> 
							</tr>
							</c:forEach>
						</table>
	</body>
</html>
